/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trialinventory2.to;

/**
 *
 * @author i1
 */
public class ListTO {

    public final String product;
    public final double price;

    private double quantity;

    public ListTO(String product, double price) {
        this.product = product;
        this.price = price;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public double getTotal() {
        return price * getQuantity();
    }

    @Override
    public String toString() {
        return "ListTO{" + "product=" + product + "price=" + price + "quantity=" + quantity + '}';
    }


}
